#include <Troll3D/SFMLWindow.h>

SFMLWindow::SFMLWindow(int width, int height)
{
    SetProperties(width, height, 60, "New Window");
}

SFMLWindow::SFMLWindow(int width, int height, int framerate)
{
    SetProperties(width, height, framerate, "New Window");
}

SFMLWindow::SFMLWindow(int width, int height, int framerate, std::string title)
{
    SetProperties(width, height, framerate, title);
}

void SFMLWindow::SetProperties(int width, int height, int framerate, std::string title)
{
    m_Width     =   width;
    m_Height    =   height;
    m_Title     =   title;
    m_Framerate =   framerate;

    m_Delta= 1.0/((float)m_Framerate);      /*! 60 frame / s , a frame last 1/60, inverse function    */

    m_Window = new sf::Window(sf::VideoMode(m_Width, m_Height, 32), m_Title, sf::Style::Default, sf::ContextSettings(32,0,0,3,2));




    m_PreviousFrame =   m_CurrentTime;
}


